﻿using LayuiMvc.Util.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LayuiMvc.DataModel.Community
{
    public class UserCollectionModel
    {
        /// <summary>
        /// 帖子Id
        /// </summary>
        public int PostId { get; set; }

        /// <summary>
        /// 帖子标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 收藏时间
        /// </summary>
        public DateTime CollectionTime { get; set; }

        public string CollectionTimeSpan
        {
            get { return TimeSpanHelper.GetTimeSpan(CollectionTime); }
        }
    }
}
